package com.ie.service;

import com.ie.entity.Community;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author admin
* @description 针对表【community】的数据库操作Service
* @createDate 2025-03-02 22:16:12
*/
public interface CommunityService{

    List<Community> getAllCommunity();

    boolean deleteCommunity(String id);

    boolean likeCommunity(String userid, String likeid);

    boolean unlikeCommunity(String userid, String likeid);

    /**
     * 发表文章
     *
     * @param community
     */
    void addCommunity(Community community);

}
